#ifndef curl_http_h
#define curl_http_h


#include <unistd.h>

typedef int (*progress_cb)(char *progress_data,
                     double t, /* dltotal */
                     double d, /* dlnow */
                     double ultotal,
                     double ulnow);

//int curl_http_download(const char *url, const char *file_name, progress_cb p_cb);
int curl_http_download(const char *url, const char *file_name, progress_cb p_cb,
	int resume_download_flag, size_t file_len);

int curl_http_upload_simple(const char *filename, const char *url, progress_cb p_cb) ;

int read_outnet_ip(void);


#endif

